<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 数组
        /* var arr1 = new Array()
        var arr2 = new Array(3)
        var arr3 = new Array("1", "2", "3")
        var arr4 = [2, 3, 4, 5]
        console.log(arr1)
        console.log(arr2)
        console.log(arr3)
        console.log(arr4) */

        // number类型
        /* var a = "123"
        var result = Number.parseInt(a)
        console.log(result) */

        // Date类型
        var date = new Date()
        console.log(date)
        console.log(date.getFullYear())
        console.log(date.getMonth() + 1)
        console.log(date.getDay())
        console.log(date.getHours())
        console.log(date.getMinutes())
        console.log(date.getSeconds())
    </script>
</head>
<body>
    
</body>
</html>